const http = require("http")

let n = 0
// 创建web服务器
const server = http.createServer((req, res) => {
    console.log(n++)
    res.setHeader('Content-Type', 'text/html;charset=utf-8')
    res.end('server')
})

server.listen(8082, () => {
    console.log("服务器启动了")
})